#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Taotie Ren
# import logging 
# 禁用日志模块
# logging.disable(logging.CRITICAL)
# logging.basicConfig(level=logging.DEBUG, format=' %(asctime)s - %(levelname)s - %(message)s')
# 更多参考：http://selenium-python.readthedocs.org/

# from selenium import webdriver
#
# browser = webdriver.Firefox()
# browser.get('http://inventwithpython.com/')
# try:
# 	elem = browser.find_element_by_class_name('bookcover')
# 	print('Found <%s> element with that class name!' % (elem.tag_name))
# except:
# 	print('Was not able to fing an element with that name.')


# from selenium import webdriver
#
# browser = webdriver.Firefox()
# browser.get('http://inventwithpython.com/')
# linkElem = browser.find_element_by_link_text('Read Online for Free')
# linkElem.click()

# from selenium import webdriver
# browser = webdriver.Firefox()
# browser.get('httpS://qzone.qq.com/')
# linkElem = browser.find_element_by_id("帐号密码登录")
# linkElem.click()
# qzoneElem = browser.find_element_by_id('QQ号码')
# qzoneElem.send_keys('qqqqqqqq')
# passwdElem = browser.find_element_by_id('密码')
# passwdElem.send_keys('qqqqqqqq')
# passwdElem.submit()

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

brower = webdriver.Firefox()
brower.get('http://bilibili.com/')
htmlElem = brower.find_element_by_tag_name('html')
htmlElem.send_keys(Keys.END)
htmlElem.send_keys(Keys.HOME)
